/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jav.componentes.textfield;

import com.jav.data.InvMovilData;
import com.sun.lwuit.Display;

/**
 *
 * @author Javier
 */
public class TextField extends com.sun.lwuit.TextField {
    
   

    public TextField() {
        super();
    }

    public TextField(String text, int columns) {
        super(text, columns);
    }

    public TextField(String text) {
        super(text);
    }

    public TextField(int columns) {
        super(columns);
    }

   

    public void keyPressed(int keyCode) {
        super.keyPressed(keyCode);
        
    }

    public void keyRepeated(int keyCode) {
        super.keyRepeated(keyCode);
        if(!InvMovilData.TIENE_BOTON_C){
          int game = Display.getInstance().getGameAction(keyCode);
          if(game == Display.GAME_RIGHT){
                this.setText("");
            }
            
        }
        
        
    }
    
    
    
    
    
    
}
